<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>聊天室</title>

        <link
            href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css"
            rel="stylesheet"
            integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
            crossorigin="anonymous"
        />

        <link
            rel="stylesheet"
            href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css"
        />
        <link rel="stylesheet" href="style.css" />
    </head>
    <body class="bg-light">
        <div class="container p-2">
            <div class="card">
                <div
                    class="
                        card-header
                        bg-success bg-gradient
                        text-light
                        d-flex
                        justify-content-between
                        align-items-center
                    "
                >
                    <span
                        ><i class="bi bi-gear-wide-connected"></i
                        >&nbsp;聊天室</span
                    >
                    <a class="text-light" href="/index.html"
                        >离开聊天室&nbsp;<i class="bi bi-arrow-right"></i
                    ></a>
                </div>
                <div class="card-body">
                    <div class="row">
                        <div class="panel-container col-sm-12 col-md-4">
                            <!--style="border-right: 1px solid rgba(0,0,0,.125)"-->
                            <ul class="list-group list-group-flush">
                                <li class="list-group-item">
                                    <i class="bi bi-door-open-fill"></i>&nbsp;<b
                                        >房间</b
                                    >
                                </li>
                                <li class="list-group-item room-name"></li>
                            </ul>
                            <ul class="list-group list-group-flush user-list">
                                <li class="list-group-item">
                                    <i class="bi bi-person-lines-fill"></i
                                    >&nbsp;<b>用户</b>
                                </li>
                            </ul>
                        </div>
                        <div
                            class="col-sm-12 col-md-8 right-panel"
                            style="height: 600px; overflow-y: scroll"
                        >
                            <div class="container message-container"></div>
                        </div>
                    </div>
                </div>
                <!--end of card-body-->
                <div class="card-footer">
                    <form id="chat-form">
                        <div class="input-group">
                            <input
                                id="msg"
                                type="text"
                                class="form-control"
                                placeholder="输入消息"
                            />
                            <button class="btn btn-success">
                                <i class="bi bi-cursor"></i>&nbsp;发送
                            </button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <script
            src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
            integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
            crossorigin="anonymous"
        ></script>
        
        <script src="/socket.io/socket.io.js"></script>

        <script src="https://cdnjs.cloudflare.com/ajax/libs/qs/6.10.1/qs.min.js"></script>

        <script src="main.js"></script>
    </body>
</html>
